<#include "../../select.ftl" />
<#include "../../upload.ftl" />
<#include "../../display.ftl" />

<#assign shmsConstant = statics["cn.hfatec.shms.constants.ShmsConstant"]/>
<!DOCTYPE html>
<html>
<head>
    <title>客户详细信息</title>
    <script type="text/javascript">
        $(function () {
            viphy();
        });
        var viphyAjax = false;
        function viphy() {
            var data = {};
            if (viphyAjax) {
                $("#viphy_table").show();
                $("#linqx").hide();
                $("#viplx_table").hide();
                $("#vipgl_table").hide();
            } else {
                $.ajax({
                    url: '${absoluteContextPath}/members/customer/ajaxList',
                    type: 'post',
                    data: data,
                    success: function (data) {
                        var data = JSON.parse(data);
                        if (data.returnCode == 1) {
                            $('#viphy_table').html(data.content.data);
                            $("#viphy_table").show();
                            $("#viplx_table").hide();
                            $("#vipgl_table").hide();
                            viphyAjax = true;
                        } else {
                            $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                        }
                    }
                });
            }
        }

        var viplxAjax = false;
        function viplx() {
            var data = {};
            if (viplxAjax) {
                $("#viphy_table").hide();
                $("#viplx_table").show();
                $("#vipgl_table").hide();
            } else {
                $.ajax({
                    url: '${absoluteContextPath}/members/cardType/ajaxList',
                    type: 'post',
                    data: data,
                    success: function (data) {
                        var data = JSON.parse(data);
                        if (data.returnCode == 1) {
                            $('#viplx_table').html(data.content.data);
                            $("#viphy_table").hide();
                            $("#viplx_table").show();
                            $("#vipgl_table").hide();
                            viplxAjax = true;
                        } else {
                            $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                        }
                    }
                });
            }
        }
        var vipglAjax = false;
        function vipgl() {
            var data = {};
            if (vipglAjax) {
                $("#viphy_table").hide();
                $("#viplx_table").hide();
                $("#vipgl_table").show();
            } else {
                $.ajax({
                    url: '${absoluteContextPath}/members/ykManage/ajaxykList',
                    type: 'post',
                    data: data,
                    success: function (data) {
                        var data = JSON.parse(data);
                        if (data.returnCode == 1) {
                            $('#vipgl_table').html(data.content.data);
                            $("#viphy_table").hide();
                            $("#viplx_table").hide();
                            $("#vipgl_table").show();
                            viphyAjax = true;
                        } else {
                            $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                        }
                    }
                });
            }
        }
        function refreshTable() {
            $("input[name=currentPage]").val(1);
            $("#search_delay_table").ajaxSubmit({
                url: '${absoluteContextPath}/members/ykManage/ajaxykList',
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        $("#vipgl_table").html(data.content.data);
                    } else {
                        $.showMessage({parentId: "showMessage", message: "表格数据加载异常！", type: "success"});
                    }
                }
            });
        }
    </script>
</head>
<body>
<div>
    <div class="breadcrumbs">
        <ol class="breadcrumb">
            <li><a href="${absoluteContextPath}/home"><i class="fa fa-home"></i>首页</a></li>
            <li><a href="#">报表管理</a></li>
            <li class="active">
            </li>
        </ol>
    </div>

    <div class="tile-widget nopadding" style="background:none">
        <ul class="nav nav-tabs tabdrop">

            <li class="active"><a data-toggle="tab" onclick="return viphy();">会员信息</a></li>
            <li><a data-toggle="tab" onclick="return viplx();">客户类型</a></li>
            <li><a data-toggle="tab" onclick="return vipgl();">会员管理</a></li>
        </ul>
    </div>
    <div class="tile-body tab-content nopadding" id="linqx">
        <div class="table-responsive">
            <form id="search_customRecord_table" action="${absoluteContextPath}/members/ykManage/ajaxykList"
                  method="post">
                <input type="hidden" name="pageSize" value=""/>
                <input type="hidden" name="currentPage" value=""/>
                <input name="cardId" value="C" type="text">
            <#--<button type="button" class="btn btn-primary" onclick="refreshTable()">查询-->
            <#--</button>-->

            </form>
        </div>
    </div>
    <div id="viphy_table"></div>
    <div id="viplx_table" style="display: none"></div>
    <div id="vipgl_table" style="display: none"></div>


</div>
</body>

</html>
